<html>
<title>Ex7</title>
<head>
	<button type="button" onclick="myFunction()">View car name</button>
	<p id="demo">Car Showroom</p>
</head>
<body>
	<script>
		function myFunction()
		{	var carname="volvo"
			document.getElementById("demo").innerHTML=carname;
			
		}
	</script>
	
</body>
</html>